//
//  UIScrollView+BCEmptyDataExt.h
//  BCScrollViewKit
//
//  Created by chasel. c on 2022/8/25.
//  空数据扩展

#import <UIKit/UIKit.h>
#import "UIScrollView+EmptyDataSet.h"

NS_ASSUME_NONNULL_BEGIN

typedef void (^EmptyBtnBlock)(void);

@interface UIScrollView (BCEmptyDataExt)<DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>

/// 是否请求成功
@property (nonatomic) BOOL bc_success;
/// y坐标偏移量
@property (nonatomic, assign) CGFloat bc_offsetY;
/// 标题
@property (nonatomic, copy) NSString *bc_emptyTitle;
/// 按钮标题
@property (nonatomic, copy) NSString *bc_emptyBtnTitle;
/// 图片
@property (nonatomic, strong) UIImage *bc_emptyImage;


/// 设置空页面
/// @param emptyImg 图片
/// @param emptyTitle 标题
- (void)bc_emptyImage:(nullable UIImage *)emptyImg title:(nullable NSString *)emptyTitle;


/// 设置空页面
/// @param emptyImg 图片
/// @param emptyTitle 标题
/// @param btnBlock 按钮点击
- (void)bc_emptyImage:(nullable UIImage *)emptyImg title:(nullable NSString *)emptyTitle btnBlock:( EmptyBtnBlock _Nullable)btnBlock;

/// 是否无网络
- (BOOL)isNoNetwork;

@end

NS_ASSUME_NONNULL_END
